<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>BariCase.java</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<style type="text/css">
<!--
body {color: #000000; background-color: #ffffff; font-family: Monospaced}
pre {color: #000000; background-color: #ffffff; font-family: Monospaced}
table {color: #000000; background-color: #e9e8e2; font-family: Monospaced}
.ST0 {color: #969696; font-family: Monospaced; font-weight: bold}
.comment {color: #969696}
.line-number {background-color: #e9e8e2}
.character {color: #ce7b00}
.keyword-directive {color: #0000e6}
-->
</style>
</head>
<body>
<table width="100%"><tr><td align="center">C:\GoogleCode\bari\Bari\src\java\dk\jsh\itdiplom\dbsw\bari\domain\BariCase.java</td></tr></table>
<pre>
<span class="line-number">  1</span> <span class="keyword-directive">package</span> dk.jsh.itdiplom.dbsw.bari.domain;
<span class="line-number">  2</span> 
<span class="line-number">  3</span> <span class="keyword-directive">import</span> dk.jsh.itdiplom.dbsw.bari.domain.Constants.CaseStatus;
<span class="line-number">  4</span> <span class="keyword-directive">import</span> dk.jsh.itdiplom.dbsw.bari.domain.Constants.DevStatus;
<span class="line-number">  5</span> <span class="keyword-directive">impo</span><span class="keyword-directive">rt</span> dk.jsh.itdiplom.dbsw.bari.domain.Constants.Type;
<span class="line-number">  6</span> <span class="keyword-directive">import</span> java.io.Serializable;
<span class="line-number">  7</span> <span class="keyword-directive">import</span> java.util.Date;
<span class="line-number">  8</span> <span class="keyword-directive">import</span> javax.persistence.*;
<span class="line-number">  9</span> 
<span class="line-number"> 10</span> <span class="comment">/**</span>
<span class="line-number"> 11</span> <span class="comment"> * </span><span class="comment">BariCase</span> <span class="comment">entity</span> <span class="comment">class</span><span class="comment">.</span>
<span class="line-number"> 12</span> <span class="comment"> *</span>
<span class="line-number"> 13</span> <span class="comment"> * </span><span class="ST0">@author</span> <span class="comment">Jan</span> <span class="comment">S</span><span class="comment">.</span> <span class="comment">Hansen</span>
<span class="line-number"> 14</span>  <span class="comment">*/</span>
<span class="line-number"> 15</span> @Entity
<span class="line-number"> 16</span> <span class="keyword-directive">public</span> <span class="keyword-directive">class</span> BariCase <span class="keyword-directive">implements</span> Serializable {
<span class="line-number"> 17</span>     <span class="keyword-directive">private</span> <span class="keyword-directive">static</span> <span class="keyword-directive">final</span> <span class="keyword-directive">long</span> serialVersionUID = 1L;
<span class="line-number"> 18</span> 
<span class="line-number"> 19</span>     @Id
<span class="line-number"> 20</span>     @GeneratedValue(strategy = GenerationType.IDENTITY)
<span class="line-number"> 21</span>     <span class="keyword-directive">protected</span> Long id;
<span class="line-number"> 22</span>     @Version
<span class="line-number"> 23</span>     @Column(nullable = <span class="keyword-directive">false</span>)
<span class="line-number"> 24</span>     <span class="keyword-directive">protected</span> Integer version;
<span class="line-number"> 25</span>     @Column(length=50, nullable = <span class="keyword-directive">false</span>)
<span class="line-number"> 26</span>     <span class="keyword-directive">protected</span> String title;
<span class="line-number"> 27</span>     @Enumerated(EnumType.STRING)
<span class="line-number"> 28</span>     @Column(length=10, nullable = <span class="keyword-directive">false</span>)
<span class="line-number"> 29</span>     <span class="keyword-directive">protected</span> Type type;
<span class="line-number"> 30</span>     @ManyToOne(optional=<span class="keyword-directive">false</span>)
<span class="line-number"> 31</span>     @org.hibernate.annotations.ForeignKey(name=<span class="character">&quot;</span><span class="character">fk_from_baricase_to_bariuser</span><span class="character">&quot;</span>)
<span class="line-number"> 32</span>     <span class="keyword-directive">protected</span> BariUser bariUser;
<span class="line-number"> 33</span>     @ManyToOne(optional=<span class="keyword-directive">false</span>)
<span class="line-number"> 34</span>     @org.hibernate.annotations.ForeignKey(name=<span class="character">&quot;</span><span class="character">fk_from_baricase_to_product</span><span class="character">&quot;</span>)
<span class="line-number"> 35</span>     <span class="keyword-directive">protected</span> Product product;
<span class="line-number"> 36</span>     @Temporal(javax.persistence.TemporalType.TIMESTAMP)
<span class="line-number"> 37</span>     @Column(nullable = <span class="keyword-directive">false</span>)
<span class="line-number"> 38</span>     <span class="keyword-directive">protected</span> Date created;
<span class="line-number"> 39</span>     @Temporal(javax.persistence.TemporalType.TIMESTAMP)
<span class="line-number"> 40</span>     <span class="keyword-directive">protected</span> Date finished;
<span class="line-number"> 41</span>     @Enumerated(EnumType.STRING)
<span class="line-number"> 42</span>     @Column(length=15, nullable = <span class="keyword-directive">false</span>)
<span class="line-number"> 43</span>     <span class="keyword-directive">protected</span> CaseStatus caseStatus;
<span class="line-number"> 44</span>     @Enumerated(EnumType.STRING)
<span class="line-number"> 45</span>     @Column(length=15, nullable = <span class="keyword-directive">false</span>)
<span class="line-number"> 46</span>     <span class="keyword-directive">protected</span> DevStatus devStatus;
<span class="line-number"> 47</span>     @Column(length=400, nullable = <span class="keyword-directive">false</span>)
<span class="line-number"> 48</span>     <span class="keyword-directive">protec</span><span class="keyword-directive">ted</span> String description;
<span class="line-number"> 49</span>     @Column(length=400)
<span class="line-number"> 50</span>     <span class="keyword-directive">protected</span> String conclusion;
<span class="line-number"> 51</span> 
<span class="line-number"> 52</span>     <span class="keyword-directive">public</span> BariCase() {
<span class="line-number"> 53</span>     }
<span class="line-number"> 54</span> 
<span class="line-number"> 55</span>     <span class="keyword-directive">public</span> BariCase(String title, Type type, BariUser bariUser,
<span class="line-number"> 56</span>             Product product, Date created,
<span class="line-number"> 57</span>             Date finished, CaseStatus caseStatus, DevStatus devStatus,
<span class="line-number"> 58</span>             String description, String conclusion) {
<span class="line-number"> 59</span>         <span class="keyword-directive">this</span>.title = title;
<span class="line-number"> 60</span>         <span class="keyword-directive">this</span>.type = type;
<span class="line-number"> 61</span>         <span class="keyword-directive">this</span>.bariUser = bariUser;
<span class="line-number"> 62</span>         <span class="keyword-directive">this</span>.product = product;
<span class="line-number"> 63</span>         <span class="keyword-directive">this</span>.created = created;
<span class="line-number"> 64</span>         <span class="keyword-directive">this</span>.finished = finished;
<span class="line-number"> 65</span>         <span class="keyword-directive">this</span>.caseStatus = caseStatus;
<span class="line-number"> 66</span>         <span class="keyword-directive">this</span>.devStatus = devStatus;
<span class="line-number"> 67</span>         <span class="keyword-directive">this</span>.description = description;
<span class="line-number"> 68</span>         <span class="keyword-directive">this</span>.conclusion = conclusion;
<span class="line-number"> 69</span>     }
<span class="line-number"> 70</span> 
<span class="line-number"> 71</span>     <span class="keyword-directive">public</span> Long getId() {
<span class="line-number"> 72</span>         <span class="keyword-directive">return</span> id;
<span class="line-number"> 73</span>     }
<span class="line-number"> 74</span> 
<span class="line-number"> 75</span>     <span class="keyword-directive">public</span> <span class="keyword-directive">void</span> setId(Long id) {
<span class="line-number"> 76</span>         <span class="keyword-directive">this</span>.id = id;
<span class="line-number"> 77</span>     }
<span class="line-number"> 78</span> 
<span class="line-number"> 79</span>     <span class="keyword-directive">public</span> Integer getVersion() {
<span class="line-number"> 80</span>         <span class="keyword-directive">return</span> version;
<span class="line-number"> 81</span>     }
<span class="line-number"> 82</span> 
<span class="line-number"> 83</span>     <span class="keyword-directive">public</span> String getTitle() {
<span class="line-number"> 84</span>         <span class="keyword-directive">return</span> title;
<span class="line-number"> 85</span>     }
<span class="line-number"> 86</span> 
<span class="line-number"> 87</span>     <span class="keyword-directive">public</span> <span class="keyword-directive">void</span> setTitle(String title) {
<span class="line-number"> 88</span>         <span class="keyword-directive">this</span>.title = title;
<span class="line-number"> 89</span>     }
<span class="line-number"> 90</span> 
<span class="line-number"> 91</span>     <span class="keyword-directive">public</span> Type getType() {
<span class="line-number"> 92</span>         <span class="keyword-directive">return</span> type;
<span class="line-number"> 93</span>     }
<span class="line-number"> 94</span> 
<span class="line-number"> 95</span>     <span class="keyword-directive">public</span> <span class="keyword-directive">void</span> setType(Type type) {
<span class="line-number"> 96</span>         <span class="keyword-directive">this</span>.type = type;
<span class="line-number"> 97</span>     }
<span class="line-number"> 98</span> 
<span class="line-number"> 99</span>     <span class="keyword-directive">public</span> BariUser getBariUser() {
<span class="line-number">100</span>         <span class="keyword-directive">return</span> bariUser;
<span class="line-number">101</span>     }
<span class="line-number">102</span> 
<span class="line-number">103</span>     <span class="keyword-directive">public</span> <span class="keyword-directive">void</span> setBariUser(BariUser bariUser) {
<span class="line-number">104</span>         <span class="keyword-directive">this</span>.bariUser = bariUser;
<span class="line-number">105</span>     }
<span class="line-number">106</span> 
<span class="line-number">107</span>     <span class="keyword-directive">public</span> Product getProduct() {
<span class="line-number">108</span>         <span class="keyword-directive">return</span> product;
<span class="line-number">109</span>     }
<span class="line-number">110</span> 
<span class="line-number">111</span>     <span class="keyword-directive">public</span> <span class="keyword-directive">void</span> setProduct(Product product) {
<span class="line-number">112</span>         <span class="keyword-directive">this</span>.product = product;
<span class="line-number">113</span>     }
<span class="line-number">114</span> 
<span class="line-number">115</span>     <span class="keyword-directive">public</span> Date getCreated() {
<span class="line-number">116</span>         <span class="keyword-directive">return</span> created;
<span class="line-number">117</span>     }
<span class="line-number">118</span> 
<span class="line-number">119</span>     <span class="keyword-directive">public</span> <span class="keyword-directive">void</span> setCreated(Date created) {
<span class="line-number">120</span>         <span class="keyword-directive">this</span>.created = created;
<span class="line-number">121</span>     }
<span class="line-number">122</span> 
<span class="line-number">123</span>     <span class="keyword-directive">public</span> Date getFinished() {
<span class="line-number">124</span>         <span class="keyword-directive">return</span> finished;
<span class="line-number">125</span>     }
<span class="line-number">126</span> 
<span class="line-number">127</span>     <span class="keyword-directive">public</span> <span class="keyword-directive">void</span> setFinished(Date finished) {
<span class="line-number">128</span>         <span class="keyword-directive">this</span>.finished = finished;
<span class="line-number">129</span>     }
<span class="line-number">130</span> 
<span class="line-number">131</span>     <span class="keyword-directive">public</span> CaseStatus getCaseStatus() {
<span class="line-number">132</span>         <span class="keyword-directive">return</span> caseStatus;
<span class="line-number">133</span>     }
<span class="line-number">134</span> 
<span class="line-number">135</span>     <span class="keyword-directive">public</span> <span class="keyword-directive">void</span> setCaseStatus(CaseStatus caseStatus) {
<span class="line-number">136</span>         <span class="keyword-directive">this</span>.caseStatus = caseStatus;
<span class="line-number">137</span>     }
<span class="line-number">138</span> 
<span class="line-number">139</span>     <span class="keyword-directive">public</span> DevStatus getDevStatus() {
<span class="line-number">140</span>         <span class="keyword-directive">return</span> devStatus;
<span class="line-number">141</span>     }
<span class="line-number">142</span> 
<span class="line-number">143</span>     <span class="keyword-directive">public</span> <span class="keyword-directive">void</span> setDevStatus(DevStatus devStatus) {
<span class="line-number">144</span>         <span class="keyword-directive">this</span>.devStatus = devStatus;
<span class="line-number">145</span>     }
<span class="line-number">146</span> 
<span class="line-number">147</span>     <span class="keyword-directive">public</span> String getDescription() {
<span class="line-number">148</span>         <span class="keyword-directive">return</span> description;
<span class="line-number">149</span>     }
<span class="line-number">150</span> 
<span class="line-number">151</span>     <span class="keyword-directive">public</span> <span class="keyword-directive">void</span> setDescription(String description) {
<span class="line-number">152</span>         <span class="keyword-directive">this</span>.description = description;
<span class="line-number">153</span>     }
<span class="line-number">154</span> 
<span class="line-number">155</span>     <span class="keyword-directive">public</span> String getConclusion() {
<span class="line-number">156</span>         <span class="keyword-directive">return</span> conclusion;
<span class="line-number">157</span>     }
<span class="line-number">158</span> 
<span class="line-number">159</span>     <span class="keyword-directive">public</span> <span class="keyword-directive">void</span> setConclusion(String conclusion) {
<span class="line-number">160</span>         <span class="keyword-directive">this</span>.conclusion = conclusion;
<span class="line-number">161</span>     }
<span class="line-number">162</span> }
<span class="line-number">163</span> 
</pre></body>
</html>
